package com.mobiporter.adias.tests;

import java.util.ArrayList;
import java.util.List;

import com.mobiporter.adias.tags.model.DetailUnitModel;

public class TestBean 
{
	private List<DetailUnitModel> detailUnits ;

	public List<DetailUnitModel> getDetailUnits() 
	{
		if (detailUnits==null)
			detailUnits = new ArrayList<DetailUnitModel>();
		
		DetailUnitModel model1 = new DetailUnitModel() ;
		model1.setHeading("Hotel Swagat Place");
		model1.setDescription("F2, Bhagat Singh marg");
		model1.addProperties("Price", "Rs. 550/night");
		model1.addProperties("Rating", "1");
		
		DetailUnitModel model2 = new DetailUnitModel();
		model2.setHeading("Hotel Volvo International");
		model2.setDescription("3246, Gali School Wali");
		model2.addProperties("Price", "Rs. 650/night");
		model2.addProperties("Rating", "3");
		
		detailUnits.add(model1);
		detailUnits.add(model2);
		
		
		return detailUnits;
	}

	public void setDetailUnits(List<DetailUnitModel> detailUnit) {
		this.detailUnits = detailUnit;
	}
}
